package project.menu.ordermenu.listallorders;

import java.util.ArrayList;

import project.controllers.Helper;
import project.menu.IMenu;
import project.menu.IMenuItem;

public class AllOrdersByPrice implements IMenuItem {
	private static final String name = "Sort by price";
	private static final String METHOD_NAME = "SortOrderByPrice";
	private final Integer id = 4;
	private static IMenu submenu;

	public Integer getId() {
		return id;
	}

	public String getNameItem() {
		return name;
	}

	public void setSubmenu(IMenu menu) {
		submenu = menu;
	}

	public ArrayList<String> action() {
		return Helper.setParametrs(METHOD_NAME, null);

	}

	public IMenu getMenu() {
		return submenu;
	}

}
